home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-06-16 | 3.0 KB | 101 lines | [TEXT/MPS ] |
- This file lists all of the known typos and bugs in the code as
- it appears in this directory and the book "Graphics Gems".
-
- Many of the fixes listed here aren't really "bugs" or "typos", as
- several of the gems were not meant to be compilable.
-
- (Note that for the moment, the file names listed here are the "new"
- names.)
-
- AAPolyScan.c
- line 19: SYBYRES should be SUBYRES
- line 22: bad space after "MODRES"
- line 48: XRmax should be xRmax
- line 96: should read "y=Vleft->y" rather than "y+Vleft->y"
- line 99: should read "VnextLeft = (Vleft=VnextLeft) + 1;"
- line 184: missing semicolon
- line 196: 'O' should be '0'
- line 237: 'O' should be '0'
- Albers.c
- line 47: spurious ')'
- line 102: "con_const" should be "cone_const"
- line 123: missing '}'
- BoundSphere.c
- line 19: Point3Struct already declared in GraphicsGems.h
- BoxSphere.c
- line 6: missing inclusion of GraphicsGems.h.
- Dissolve.c
- pseudo-code at head of file commented out
- line 14: missing "int randmasks[32];"
- FastJitter.c
- line 16: missing end-of-comment
- FitCurves.c
- line 37: add dummy DrawBezierCurve() in order to check compilation
- FixedTrig.c
- line 46: missing ';'
- Forms.c
- line 24: bad start-of-comment
- GGVecLib.c
- line 7: #included math.h
- line 148: V2MulPointByMatrix: use temp. Point2 to hold intermediate
- results
- line 331: V3MulPointByMatrix: use temp. Point3 to hold intermediate
- results
- GraphicsGems.h
- line 146: declared functions from GGVecLib.c
- Hash3D.c
- line 23: ABS() conflicts with ABS() in GraphicsGems.h -- ranamed
- IABS()
- line 24: TRUE already defined in GraphicsGems.h
- line 25: FALSE already defined in GraphicsGems.h
- line 67: replace ABS() with IABS()
- line 68: repalce ABS() with IABS()
-
- LineEdge.c
- Can't use "const" as a variable name, as it is a reserved word in
- ANSI C. Use "liconst" instead.
- MatrixInvert.c
- line 6: define SMALL_NUMBER to test compilation
- line 33: "out" should be "in"
- 'matrix4' should be 'Matrix4' throughout
- OrderDither.c
- line 32: ':' should be ';'
- line 65: "l * 1" should be "l * l"
- Quaternions.c
- line 6: declare P, Q, and M as externs to test compilation
- RayBox.c
- line 28: 'O' should be '0'
- Roots3And4:
- line 28: declare sqrt(), cbrt(), cos(), acos() extern double
- line 214: should read coeffs[ 1 ] = q < 0 ? -v : v;
- line 220: should read coeffs[ 1 ] = q < 0 ? v : -v;
- SquareRoot.c
- line 22: add space around '=', as some compilers assume "=&" means "&="
- line 49: '{' should be '['
- TransBox.c
- line 8: bad start-of-comment
- TriPoints.c
- line 7: #included math.h
- line 49: bad end-of comment; delete '/'
-
- 2DClip:
- bio.c
- line 8: add #include "GraphicsGems.h"
- clip.c
- line 6: add #include "GraphicsGems.h"
- line 127: missing semicolon
- cross.c
- line 7: add #include "GraphicsGems.h"
-
- PolyScan:
- fancytest.c:
- line 29: should be:
- static Poly_box box = {0, XMAX, 0, YMAX, -32678, 32767.99};
- line 34: commented out "< ... >" lines to facilitate testing
- line 84: missing '{'
- poly_clip.c:
- line 120: insert statement: up = (double *)u;
- scantest.c:
- line 20: pixelproc() should be "static void"
-
-